-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update deps #24
Update deps #24
Conversation
const express = require('express'); | ||
|
||
const app = express(); | ||
app.use(express.static('./dist-vue')); | ||
app.listen(4185); | ||
/* c8 ignore stop */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example server stub, ignoring for test coverage as it's the most basic express usage possible, so no need to deal with mocking this for tests, and it is simple specifically so people can easily replace it. Adding c8 ignores so they can more easily add coverage to the server.js if it has more custom logic.
@@ -2,6 +2,8 @@ import vueSnapshotSerializer from './serializer.js'; | |||
|
|||
expect.addSnapshotSerializer(vueSnapshotSerializer); | |||
|
|||
global.document = global.window.document; | |||
document.body.innerHTML = '<div id="app"></div>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that main.js
is being tested we need to mock out #app
so it can mount to something without throwing an error.
No description provided.